<template>
  <div>
      <ul>
          <li v-for=" item in num1 " :key="item" @click="fn1(item)">{{item}}</li>
      </ul>
  </div>
</template>

<script>
export default {
    data(){
        return {
            num1:[0,1,2,3,4,5,6,7,8,9]
        }
    },
    methods:{
        fn1(item){
            // console.log(item);
            this.$store.commit('serch',item)
        }
    }


}
</script>

<style>
    ul{
        float: left;
    }
</style>